<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>阳光成单系统</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="./css/x-admin.css" media="all">
</head>
<body>
	<div class="x-nav">
		<span class="layui-breadcrumb"> <a><cite>首页</cite></a> <a><cite>公司设置</cite></a>
			<a><cite>公司信息</cite></a>
		</span> <a class="layui-btn layui-btn-small"
			style="line-height: 1.6em; margin-top: 3px; float: right"
			href="javascript:location.replace(location.href);" title="刷新"><i
			class="layui-icon" style="line-height: 30px">ဂ</i></a>
	</div>
	<xblock>
	<button class="layui-btn"
		onclick="company_edit('修改公司信息','company-edit.html','800','700')">
		<i class="layui-icon">&#xe642;</i>修改
	</button>
	</xblock>
	<table class="layui-table">
		<thead>
			<tr>
				<th>公司名称</th>
				<th>公司网站</th>
				<th>公司简介</th>
				<th>公司电话</th>
				<th>公司邮箱</th>
				<th>公司地址</th>
				<th>公司文化</th>
				<th>简介图片</th>
			</tr>
		</thead>
		<tbody id="tbody_company">

		</tbody>
	</table>
	</div>
	<script src="./lib/layui/layui.js" charset="utf-8"></script>
	<script src="./js/x-layui.js" charset="utf-8"></script>
	<script>
            layui.use(['element','layer','form'], function(){
                $ = layui.jquery;//jquery
              	layer = layui.layer//弹出层
             
              $(function(){
            	  selCompany();
              });
              
            });

             //查询公司信息
            function selCompany(){
            	$("#tbody_company").html("");
            	$.post("../adminCompany?reqName=getCompany",{},function(res){
            			$("#tbody_company").append(`<tr>
                                <th>
                                ${res.name}
                            </th>
                            <th>
                                ${res.webSite}
                            </th>
                            <th>
                                ${res.introduction}
                            </th>
                            <th>
                                ${res.phone}
                            </th>
                            <th>
                                ${res.email}
                            </th>
                             <th>
                            ${res.address}
                            </th>
                            <th>
                                ${res.cultrue}
                            </th>
                            <th>
                                <img  src="../${res.introducePicture}" width="200" alt="">
                            </th> 
                           
                        </tr>`);
            	},"json");
            }
            

             //-编辑
            function company_edit(title,url,id,w,h) {
                x_admin_show(title,url,w,h); 
            }
           
            
            
            </script>

</body>
</html>